The Collatz conjecture has four very simple steps:
- Pick a positive integer
- If it's even, divide it by two
- If it's odd, multiply it by 3 and then add 1
- Take the result and repeat steps 2 and 3
The conjecture is that no matter what number is chosen, the sequence will always reach 1.
Enter the number you'd like to test: (up to 1 Quadrillion)
Step | Result |
---|